package morenoapp.model.enums;

import java.awt.Color;
import morenoapp.util.Description;
import morenoapp.util.I18N;
import morenoapp.util.MorenoUtil;

/**
 *
 * @author dmitry.mamonov
 */
public enum MorenoSex implements Description {

    UNKNOWN(I18N.get("label.sex.select"), I18N.getColor("color.sex.select")),
    MALE(I18N.get("lable.sex.male.short"), I18N.getColor("color.sex.male")),
    FEMALE(I18N.get("label.sex.female.short"), I18N.getColor("color.sex.female"));
    private String name;
    private Color color;

    private MorenoSex(String _name, Color _color) {
        this.name = _name;
        this.color = _color;
    }

    public Color getColor() {
        return color;
    }

    public String getPlainString() {
        return name;
    }

    public String getLongTitle() {
        return name;
    }

    public String getShortTitle() {
        return name;
    }

    public String getHtmlDescription() {
        return MorenoUtil.wrapTextWithColor(color, name);
    }
}
